package com.example.friend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.friend.model.user.UserSubmit;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface UserSubmitMapper extends BaseMapper<UserSubmit> {
    UserSubmit selectCurrentUserSubmit(Long userId, Long examId, Long questionId, String currentTime);
    
    /**
     * 查询热门题目列表
     * @return 按提交次数排序的题目ID列表
     */
    List<Long> selectHostQuestionList();
}
